import {api} from "@/utils/request";


// 分页查询

export const getAllPage=(page:number,limit:number,productSpecName:string)=>{
return api({
url: '/product/product-spec/getAllPage/'+page+'/'+limit,
method: 'get',
params:{
    name:productSpecName
},
})
}

// 新增
export const saveProductSpec=(data:any)=>{
return api({
url: '/product/product-spec/save',
method: 'post',
data,
})
}
// 修改
export const updateByIdProductSpec=(data:any)=>{
return api({
url: '/product/product-spec/updateById',
method: 'put',
data,
})
}
// 删除
export const deleteByIdProductSpec=(id:number)=>{
return api({
url: '/product/product-spec/deleteById/' + id,
method: 'delete',
})
}




// 查询所有的规格
export const FindAllProductSpec=()=>{
return api({
url: '/product/product-spec/getAllSpec',
method: 'get',
})
}


